* {
    margin: 0;
    padding: 0;
}

h3 {
    text-align: center;
    width: 1500px;
    height: 50px;
    line-height: 50px;
    border-bottom: 1px solid #ccc;
    margin: 20px auto;
}

.timing-function-ex {
    width: 1200px;
    height: 750px;
    box-shadow: 0 0 4px 0 #ccc;
    margin: 20px auto;

}

.time {
    height: 10px;
    margin: 10px;
}

.time-ex {
    height: 2px;
    background-color: #f0f;
    position: relative;
}

.time-box {
    height: 12px;
    width: 5px;
    background-color: #000;
    position: absolute;
    top: -5px;
    animation: demo 15s linear 0s infinite normal none running;
}

.ex {
    height: 100px;
    margin: 20px 10px;
}

.ex>p {
    border-bottom: 1px solid #ccc;
}

.ex-box {
    width: 200px;
    height: 100px;
    background-color: #0ff;
}

.linear-box {
    animation: demo 15s linear 0s infinite normal none running;
}

.ease-box {
    animation: demo 15s ease 0s infinite normal none running;
}

.ease-in-box {
    animation: demo 15s ease-in 0s infinite normal none running;
}

.ease-out-box {
    animation: demo 15s ease-out 0s infinite normal none running;
}

.ease-in-out-box {
    animation: demo 15s ease-in-out 0s infinite normal none running;
}

.cubic-bezier-box {
    animation: demo 15s;
    animation-timing-function: cubic-bezier(0, 1.0, 1.0, 0);
}


@keyframes demo {
    from {
        margin-left: 0px;
    }

    to {
        margin-left: 1000px;
    }
}

@-webkit-keyframes demo {
    from {
        margin-left: 0px;
    }

    to {
        margin-left: 1000px;
    }
}